<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>插值表达式</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- 常量 -->
        {{"张三"}} <br>
        {{"张三"+age}} <br>
        {{85}}<br>
        <!-- 变量 -->
        {{name}}<br>
        {{age}}<br>
        {{age+10}}<br>
        {{hobby}}<br>
        <!-- 表达式 -->
        {{age>10?"成年人":"未成年人"}}
    </div>
</body>
</html>
<script>
    var vm=new Vue({
        el:"#app",
        data:{
            name:"zhangsan",
            age:78,
            hobby:"旅行"
        }
    })
</script>